<% const MaxPerPage=4 dim totalPut dim CurrentPage dim TotalPages dim i if Chkrequest(request("page")) then currentPage=request("page") else currentPage=1 end if dim sql dim rs dim rstype if Chkrequest(request("id")) then id=request("id") else Response.Redirect ("../../login/chklogin.asp?login=4") end if mysql="select * from corporation where id="&id&"" Set myrs= Server.CreateObject("ADODB.Recordset") myrs.open mysql,conn,1,1 %>
商务助手首页
发布商业信息
发布供求信息
管理供求信息
发布产品信息
管理产品信息
公司介绍
查看商业往来
我收到的留言
我发出的留言
发新留言
我订阅的信息
我的商业伙伴
我的会员资料
我的自助网站
帮助








" response.write "
<% sql="select * from book where bookid="&id&" order by INFO_ID desc" Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,1 if rs.eof and rs.bof then response.write"" else totalPut=rs.recordcount if currentpage<1 then currentpage=1 end if if (currentpage-1)*MaxPerPage>totalput then if (totalPut mod MaxPerPage)=0 then currentpage= totalPut \ MaxPerPage else currentpage= totalPut \ MaxPerPage + 1 end if end if if currentPage=1 then showContent else if (currentPage-1)*MaxPerPage

<%showpage totalput,MaxPerPage,"contact_edit.asp"%>

<%do while not rs.eof%>
<%if rs("Gsid")>=1 then %>"><%=rs("linkman")%>【会员】<%else%><%=rs("linkman")%>【游客】<%end if%>    <%=rs("dateandtime")%>  <%if session("id")="" then%><%else%>&infoid=<%=rs("info_id")%>")">   &infoid=<%=rs("info_id")%>"><%end if%>
<%=mid(rs("content"),1,200)%> ")">[详细信息]
<%if rs("recontent")<>"" then%> 【回复】:<%=rs("recontent")%> <%end if%>
<% i=i+1 if i>=MaxPerPage then exit do rs.movenext loop rs.close set rs=nothing %>
<%showpage totalput,MaxPerPage,"contact_edit.asp"%>
<% end sub function showpage(totalnumber,maxperpage,filename) dim n if totalnumber mod maxperpage=0 then n= totalnumber \ maxperpage else n= totalnumber \ maxperpage+1 end if response.write "
" if CurrentPage<2 then response.write "共"&n&"页 第"&CurrentPage&"页 " response.write "共有"&totalnumber&"条反馈信息" response.write "
" response.write "【最前页】【上一页】" else response.write "共"&n&"页 第"&CurrentPage&"页 " response.write "共有"&totalnumber&"条反馈信息" response.write "【最前页】" response.write "【上一页】" end if if n-currentpage<1 then response.write "【下一页】【最后页】" else response.write "【" response.write "下一页】【 最后页】" end if response.write "" end function %>






<%myrs.close set myrs=nothing conn.close set conn=nothing %>